package com.base.taskreports.reports.dao.master;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.base.taskreports.reports.entiyt.master.TBatchEntity;

@Mapper
public interface TBatchDao extends BaseMapper<TBatchEntity>{
	
	//int countByExample(TBatchEntity example);

    //int deleteByExample(TBatchEntity example);

    int deleteByPrimaryKey(Long taskId);
    
    @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
    int insert(TBatchEntity record);

    int insertSelective(TBatchEntity record);

    //List<TBatchEntity> selectByExample(TBatchEntity example);

    TBatchEntity selectByPrimaryKey(Long taskId);

    //int updateByExampleSelective(@Param("record") TBatchEntity record, @Param("example") TBatchEntity example);

    //int updateByExample(@Param("record") TBatchEntity record, @Param("example") TBatchEntity example);

    int updateByPrimaryKeySelective(TBatchEntity record);

    int updateByPrimaryKey(TBatchEntity record);
    
}